<?php
namespace Zxf5115\Laravel\Profile\Controllers\Api;

use Zxf5115\Laravel\Kernel\Controllers\Api\ApiController;

/**
 * @author zhangxiaofei [<1326336909@qq.com>]
 * @dateTime 2025-09-25
 *
 * 协议控制器类
 */
class AgreementController extends ApiController
{
  /**
   * 模型类名
   */
  public string $modelClass = 'Zxf5115\Laravel\Profile\Models\Api\Profile';

  /**
   * 默认查询条件
   */
  public array $defaultWhere = [
    'type' => 2
  ];

  /**
   * 查询字段配置
   */
  public array $fieldParams = [
    'select' => [
      'id', 'name'
    ],
    'view' => [
      'content'
    ]
  ];

  /**
   * 排序规则
   */
  public array $sortRules = [
    ['key' => 'sort', 'value' => 'desc'],
    ['key' => 'id', 'value' => 'desc'],
    ['key' => 'create_time', 'value' => 'desc'],
  ];
}
